import { messages } from '@/utils/currency'

export interface TransferRecord {
    workerId: string
    finished: boolean
}

export const apiAll = (classPar: () => Promise<any>) =>
    classPar()
        .then((response: any) => response)
        .catch((error: any) => messages(error.message))
